package com.example.simplesvc.concurrent.lock;

import java.util.Date;
import java.util.Objects;

public class LockData {
    private Long id = -1L;
    private String name;
    private Long version;
    private Date lockedTime;
    private Date expireTime;

    private Integer status;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Long getVersion() {
        return version;
    }

    public void setVersion(Long version) {
        this.version = version;
    }

    public Date getLockedTime() {
        return lockedTime;
    }

    public void setLockedTime(Date lockedTime) {
        this.lockedTime = lockedTime;
    }

    public Date getExpireTime() {
        return expireTime;
    }

    public void setExpireTime(Date expireTime) {
        this.expireTime = expireTime;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }


    @Override
    public String toString() {
        return "LockData{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", version=" + version +
                ", lockedTime=" + lockedTime +
                ", expireTime=" + expireTime +
                ", status=" + status +
                '}';
    }
}
